package cn.unknowpupil.init.domain;

import java.math.BigDecimal;
import cn.unknowpupil.init.components.annotation.Excel;
import cn.unknowpupil.init.configure.mybatisplus.base.BaseEntity;
import cn.unknowpupil.init.configure.mybatisplus.base.ParentEntity;
import cn.unknowpupil.init.configure.mybatisplus.base.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;


/**
 * Created at Tue Dec 01 09:45:21 CST 2020 by  w10g <br>
 * Initialize LeaseLog ... <br>
 * 交租日志 业务表
 *
 * @author  uunknowpupil
 * @since 0.0.1
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lease_log")
@ApiModel(value = "lease_log 域", description = "交租日志业务表")
public class LeaseLog extends ParentEntity<LeaseLog> {
    private static final long serialVersionUID = 1L;

    /**
     * 0 租户交个 中介 收入 1 中介交给 业主 支出
     */
    @Excel(name = "0 租户交个 中介 收入 1 中介交给 业主 支出")
    @ApiModelProperty(value = "0 租户交个 中介 收入 1 中介交给 业主 支出")
    @TableField(value = "lease_type")
    private String leaseType;

    /**
     * 房子ID
     */
    @Excel(name = "房子ID")
    @ApiModelProperty(value = "房子ID")
    @TableField(value = "house_id")
    private Long houseId;

    /**
     * 交租用户 为null则为中介交的
     */
    @Excel(name = "交租用户 为null则为中介交的")
    @ApiModelProperty(value = "交租用户 为null则为中介交的")
    @TableField(value = "lease_id")
    private Long leaseId;

    /**
     * 交租金额
     */
    @Excel(name = "交租金额")
    @ApiModelProperty(value = "交租金额")
    @TableField(value = "lease_amount")
    private BigDecimal leaseAmount;

    /**
     * 交租方式
     */
    @Excel(name = "交租方式")
    @ApiModelProperty(value = "交租方式")
    @TableField(value = "taxes_way")
    private String taxesWay;

}
